package com.md.api.service;

import com.md.api.entity.*;
import com.md.api.entity.dto.ComposeCommitDto;
import com.md.api.entity.dto.ComposeQueryDto;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author liujie
 * @ClassName UserSevice
 * @Date 2022/11/9 11:34
 **/
public interface PhotoService {

    HttpResult photoPage(HttpServletRequest request, ComposeQueryDto qto);
    HttpResult picturePage(HttpServletRequest request, ComposeQueryDto qto);

    HttpResult newOne(HttpServletRequest request, PhotoInfo photoInfo);

    public HttpResult savePicture(HttpServletRequest request, PictureInfo pictureInfo);
    HttpResult resetPhotoName(HttpServletRequest request, PhotoInfo photoInfo);
    HttpResult resetPictureName(HttpServletRequest request, PictureInfo pictureInfo);

    HttpResult setCoverImage(HttpServletRequest request, PictureInfo pictureInfo);

    HttpResult setCherryPick(HttpServletRequest request, ComposeCommitDto commitDto);

    HttpResult removeCoverImage(HttpServletRequest request, PictureInfo pictureInfo);

    HttpResult removeCherryPick(HttpServletRequest request, PictureInfo pictureInfo);

    HttpResult transferPicture(HttpServletRequest request, ComposeCommitDto commitDto);

     HttpResult saveShare(HttpServletRequest request, ShareRecord shareRecord);

    HttpResult deletePicture(HttpServletRequest request,PictureInfo picture);

    HttpResult refinePicture(HttpServletRequest request, PictureInfo picture);

    HttpResult setPhotoVideoUrl(HttpServletRequest request, PhotoInfo photoInfo);

    HttpResult setPrivate(HttpServletRequest request, PhotoInfo photoInfo);

    HttpResult setPhotoLogoUrl(HttpServletRequest request, PhotoInfo photoInfo);
}
